package com.mobilemoney.mm;

import com.mobilemoney.mm.util.WebViewUtil;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.webkit.WebView;

public class SecurityContentActivity extends Activity {
	
	private WebView mwebView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.security_content);
		
		Intent intent = getIntent();
		Bundle bundle = intent.getExtras();
		int position = bundle.getInt("position");
		
		mwebView = new WebViewUtil(SecurityContentActivity.this, R.id.security_webView).getWebView();
		String url = "file:///android_asset/security" + position + ".html";
		mwebView.loadUrl(url);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.security_content, menu);
		return true;
	}

}
